<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

// no direct access
defined ( '_JEXEC' ) or die ( 'Restricted access' );

// DEVNOTE: Pull in the class that will be used to actually display our toolbar.
require_once (JApplicationHelper::getPath ( 'toolbar_html' ));

$view = JRequest::getWord ( 'view', '' );

switch ($view) {
	case 'jaapplications' :
		TOOLBAR_JAJOBBOARD::JAApplications ();
		break;
	case 'jaconfiguration' :
		TOOLBAR_JAJOBBOARD::JAConfiguration ();
		break;
	case 'japaymentconfig' :
		TOOLBAR_JAJOBBOARD::JAPaymentConfig ();
		break;
	case 'jacategories' :
		TOOLBAR_JAJOBBOARD::JASalary ();
		TOOLBAR_JAJOBBOARD::JACategories ( JText::_ ( 'JBMANAGER' ) . '::' . JText::_ ( 'Categories' ) );
		break;
	case 'jalocation' :
		TOOLBAR_JAJOBBOARD::JASalary ();
		TOOLBAR_JAJOBBOARD::JACategories ( JText::_ ( 'JBMANAGER' ) . '::' . JText::_ ( 'Locations' ) );
		break;
	case 'jasalary' :
		TOOLBAR_JAJOBBOARD::JASalary ();
		TOOLBAR_JAJOBBOARD::JACategories ( JText::_ ( 'JBMANAGER' ) . '::' . JText::_ ( 'Salary' ) );
		break;
	case 'jaemail' :
		TOOLBAR_JAJOBBOARD::JAEmails ();
		break;
	case 'jamanagefields' :
		TOOLBAR_JAJOBBOARD::JAManagefields ();
		break;
	case 'jasearchforms':
		TOOLBAR_JAJOBBOARD::JASearchForms();
		break;
	case 'jafieldlist' :
		TOOLBAR_JAJOBBOARD::JAFieldList ();
		break;
	case 'jajobs' :
		TOOLBAR_JAJOBBOARD::JAJobs ();
		break;
	case 'jaemployers' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Employers' ) );
		TOOLBAR_JAJOBBOARD::JAEmployers ();
		break;
	case 'jacandidates' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Job Seekers' ) );
		TOOLBAR_JAJOBBOARD::JAEmployers ();
		break;
	
	case 'jamail' :
		TOOLBAR_JAJOBBOARD::JAMail ();
		break;
	case 'jacredits' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Credits' ) );
		TOOLBAR_JAJOBBOARD::JACredits ();
		break;
	case 'jacoupon' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Coupon' ) );
		TOOLBAR_JAJOBBOARD::JACoupon ();
		break;
	case 'jatax' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'TAX' ) );
		TOOLBAR_JAJOBBOARD::JATax ();
		break;
	case 'jacredits_invoice' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Credits Invoice' ) );
		TOOLBAR_JAJOBBOARD::JACredits_Invoice ();
		break;
	case 'jasubscriptions' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Subscriptions' ) );
		TOOLBAR_JAJOBBOARD::JASubcriptions ();
		break;
	case 'jasubscriptions_invoice' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Subscriptions Invoice' ) );
		TOOLBAR_JAJOBBOARD::JASubscriptions_Invoice ();
		break;
	case 'jatransactions' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Transactions' ) );
		TOOLBAR_JAJOBBOARD::JATransactions ();
		break;
	case 'japostingplans' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Posting Plans' ) );
		TOOLBAR_JAJOBBOARD::JAPostingPlans ();
		break;
	case 'japostingplans_invoice' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Posting Plans Invoice' ) );
		TOOLBAR_JAJOBBOARD::JAPostingPlans_Invoice ();
		break;
	case 'japermission' :
		JToolBarHelper::title ( JText::_ ( 'JA Job Board' ) . '::' . JText::_ ( 'Permission' ) );
		TOOLBAR_JAJOBBOARD::JAPermission ();
		break;
	//	case 'jatransactions':
	//		TOOLBAR_JAJOBBOARD::JATransactions();
	//		break;
	case 'jacustomtmpl' :
	case 'jacustomcss' :
		TOOLBAR_JAJOBBOARD::JACustomtmpl ();
		break;
	case 'jafinance' :
		TOOLBAR_JAJOBBOARD::JAFinance ();
		break;
	case 'jamanagelang' :
		TOOLBAR_JAJOBBOARD::JALanguage ();
		break;
	case 'jafeeds' :
		TOOLBAR_JAJOBBOARD::JAFeeds ();
		break;
	case 'jaxmlimport' :
		TOOLBAR_JAJOBBOARD::JAXML_IMPORT ();
		break;
	case 'jaxmlexport' :
		TOOLBAR_JAJOBBOARD::JAXML_EXPORT ();
		break;
	case 'jaimportusers' :
		TOOLBAR_JAJOBBOARD::JAImportUsers ();
		break;
	case 'jaimportjoomsocialusers' :
		TOOLBAR_JAJOBBOARD::JAImportJoomSocialUsers ();
		break;
	default :
		TOOLBAR_JAJOBBOARD::_DEFAULT ();
}
?>
